#include "board.h"
#include "GL\glut.h"
Board::Board(){
	for(int i = 1; i <= 8; i++){
		for(int j = 1; j <= 8; j++){
			squares[i-1][j-1] = new Square(i, j);
		}
	}
	font =  GLUT_BITMAP_TIMES_ROMAN_24;
}

void Board::drawBoard(){
	for(int i = 0; i < 8; i++){
		for(int j = 0; j < 8; j++){		
			glPushMatrix();
			squares[i][j]->drawSquare();
			glPopMatrix();
		}
	}
}